import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/liveManagement',
  component: Layout,
  name: 'liveManagement',
  meta: {title: '直播管理', icon: 'icon'},
  children: [
    {
      path: 'liveUser',
      component: _import('LiveStreaming/permission'),
      name: 'liveUser',
      meta: {
        title: '直播管理',
        icon: 'icon',
        buttons: {
          add: { label: '添加新用户', enabled: true },
          operate: { label: '启用/禁用', enabled: true },
          roomManage: { label: '管理直播间', enabled: true }
        }
      },
    },
    {
      path: 'roomList',
      component: _import('LiveStreaming/rom'),
      name: 'liveUserRoomManage',
      meta: {title: '直播间管理', icon: 'icon'},
      props: true,
      hidden: true
    }]
}
